#-------------------------------------------------------------------------------
# Name:        module2
# Purpose:
#
# Author:      Student
#
# Created:     04/07/2012
# Copyright:   (c) Student 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------
import random
class Card:
    def __init__(self, suit, value):
        self.cardSuit=suit
        self.cardValue=value
        self.actual_value=0;
        if(value=="Jack"):
            self.actual_value=11
        elif(value=="Queen"):
            self.actual_value=12
        elif(value=="King"):
            self.actual_value=13
        elif(value=="Ace"):
            self.actual_value=14
        else:
            self.actual_value=int(value)


    def function_highCard(self,card):
        if((self.actual_value)>(card.actual_value)):
            print("The First Card is greater than the second card")
            return
        elif((self.actual_value)<(card.actual_value)):
            print("The second Card is greater than the first card")
            return
        else:
            if (self.cardSuit>card.cardSuit):
               print("That was a close one, but Card 1 is greater than card 2")
            if (self.cardSuit>card.cardSuit):
                print("That was a close one, but Card 2 is greater than Card 1")




def main():
    Card_Suits=["Clubs", "Diamonds", "Hearts", "Spades"]
    values=[]
        values.append(i)
    for i in range(2,11):
    faces=["Jack", "Queen", "King", "Ace"]
    values.extend(faces)
    deck=[]
    for x in Card_Suits:
        for y in values:
            addCard=Card(x, y)
            deck.append(addCard)
    random.shuffle(deck)
    c=random.choice(deck)
    Card1=Card(c.cardSuit, c.cardValue)
    print(c.cardValue, c.cardSuit)
    c1=random.choice(deck)
    Card2=Card(c1.cardSuit, c1.cardValue)
    print(c1.cardValue, c1.cardSuit)
    Card1.function_highCard(Card2)


if __name__ == '__main__':
    main()